package cn.crce.cloud9.basic;

/**
 * @author OnCloud9
 * @description
 * @project NRCE-TEST
 * @date 2022年09月09日 下午 10:22
 */
public class Case21 {
    //*********Found**********
    public  static  void main (String args[])
    {
        new SimpleThread("第1").start();
        new SimpleThread("第2").start();
    }
}

//*********Found**********
class SimpleThread extends Thread
{
    public SimpleThread(String str)
    {
        super(str);
    }
    public void run()
    {
        for (int i = 0; i < 5; i++)
        {
            //*********Found**********
            System.out.println(i + " " + this.getName());
            try
            {
                sleep((int)(2 * 100));
            }
            catch (InterruptedException e) { }
        }
        System.out.println("运行! " + getName());
    }
}
